home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group93b.txt / 000130_icon-group-sender _Wed Jun 9 13:56:54 1993.msg < prev    next >
Internet Message Format  |  1993-06-16  |  1KB

  1. Received: from owl.CS.Arizona.EDU by cheltenham.CS.Arizona.EDU; Wed, 9 Jun 1993 12:43:44 MST
  2. Received: by owl.cs.arizona.edu; Wed, 9 Jun 1993 12:43:42 MST
  3. Date: Wed, 9 Jun 93 13:56:54 EDT
  4. From: Paul_Abrahams@MTS.cc.Wayne.edu
  5. To: icon-group@cs.arizona.edu
  6. Message-Id: <677397@MTS.cc.Wayne.edu>
  7. Subject: Initialization files for Icon programs
  8. Status: RO
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. Here's a problem I ran into recently, which probably occurs with many
  12. Icon programs.  My program, on starting, reads in certain initialization
  13. files.  I want to keep those files in the same directory as the program's
  14. icode file, i.e., the .icx file (or, for Unix, the "p" file for program
  15. p.icn).  However, I don't want to require the program to know the full
  16. path name of the initialization files, since that might change according
  17. to where the program and its files have been installed.
  18.  
  19. So here's the problem: how, within the program, can I determine the full
  20. path name of the icode file so that I can construct the full path name of
  21. the initialization files?  I'm interested in the solution to this problem
  22. for three cases: DOS, OS/2, and Unix.  Is it much easier in some systems
  23. than in others?
  24.  
  25. Thanks.
  26.  
  27. Paul Abrahams
  28. Reply-To: abrahams@acm.org
  29.